<?php
$is_active = function ($name = '') use ($active) {
    if ($active === $name)
        return ' active';
    else
        return '';
}
?>
<div class="toolbar tabbar tabbar-labels">
	<div class="toolbar-inner">
		<a href="{{ route('index') }}" class="item-link tab-link{{ $is_active('index') }}"> <i class="icon tabbar-home"></i><span class="tabbar-label">首页</span></a>
		<a href="{{ route('group.list.mine') }}" class="tab-link{{ $is_active('sns') }}"><i class="icon tabbar-team"></i><span class="tabbar-label">圈子</span></a>
		<a href="{{ route('info.index') }}" class="tab-link{{ $is_active('info') }}"> <i class="icon tabbar-knowledge"></i><span class="tabbar-label">知识</span></a><a href="{{ route('center.index') }}" class="tab-link{{ $is_active('center') }}"> <i class="icon tabbar-mine"></i><span class="tabbar-label">我的</span></a>
	</div>
</div>